package com.dragon.common.core.constant;

/**
 * @date: 2024/8/6 10:42
 * @author: ybl
 */
public class SecurityConstants {

    /**
     * 角色前缀
     */
    public static final String ROLE = "ROLE_";

    /**
     * 标志
     */
    public static final String FROM = "from";

    /**
     * 默认登录URL
     */
    public static final String OAUTH_TOKEN_URL = "/oauth2/token";

    /**
     * 授权码模式confirm
     */
    public static final String CUSTOM_CONSENT_PAGE_URI = "/token/confirm_access";


    /**
     * 项目的license
     */
    public static final String PROJECT_LICENSE = "https://pig4cloud.com";


    /**
     * {bcrypt} 加密的特征码
     */
    public static final String BCRYPT = "{bcrypt}";

    /**
     * 协议字段
     */
    public static final String DETAILS_LICENSE = "license";

    /**
     * 客户端ID
     */
    public static final String CLIENT_ID = "clientId";

    /**
     * 客户端模式
     */
    public static final String CLIENT_CREDENTIALS = "client_credentials";

    /**
     * 用户信息
     */
    public static final String DETAILS_USER = "user_info";

    /**
     * 用户ID
     */
    public static final String DETAILS_USER_ID = "user_id";

    /**
     * 用户名
     */
    public static final String USERNAME = "username";

    /**
     * 手机号登录
     */
    public static final String MOBILE = "mobile";


    /**
     * {noop} 加密的特征码
     */
    public static final String NOOP = "{noop}";

    /**
     * 内部
     */
    public static final String FROM_IN = "Y";
}
